﻿using Microsoft.CodeAnalysis.CSharp.Scripting;
using System;
using System.Threading.Tasks;

namespace RoslynScriptDemo
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var state = await CSharpScript.RunAsync("using System;");
            await state.ContinueWithAsync("Console.WriteLine(\"hello world.\");");
            Console.ReadKey();
        }
    }
}
